package com.interview.rtc.aigc.dao;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.util.Date;

@Data
@TableName("chat_message")
public class ChatMessageDao {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("chat_history_id")
    private Long chatHistoryId;

    @TableField("role")
    private String role;

    @TableField("serial_number")
    private Long serialNumber;

    @TableField("content")
    private String content;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
} 